home *** CD-ROM | disk | FTP | other *** search
/ Oh!X 2000 Spring / Oh!X 2000 Spring Special CD-ROM (Japan) (Part 2).7z / Oh!X 2000 Spring Special CD-ROM (Japan) (Part 2).bin / DXF / samples / multimedia / dsound / src / playsound / wavread.h < prev    next >
C/C++ Source or Header  |  1999-06-18  |  1KB  |  45 lines

  1. //-----------------------------------------------------------------------------
  2. // File: WavRead.h
  3. //
  4. // Desc: Support for loading and playing Wave files using DirectSound sound
  5. //       buffers.
  6. //
  7. // Copyright (c) 1999 Microsoft Corp. All rights reserved.
  8. //-----------------------------------------------------------------------------
  9. #ifndef WAVE_READ_H
  10. #define WAVE_READ_H
  11.  
  12.  
  13. #include <mmreg.h>
  14. #include <mmsystem.h>
  15.  
  16.  
  17. //-----------------------------------------------------------------------------
  18. // Name: class CWaveSoundRead
  19. // Desc: A class to read in sound data from a Wave file
  20. //-----------------------------------------------------------------------------
  21. class CWaveSoundRead
  22. {
  23. public:
  24.     WAVEFORMATEX* m_pwfx;        // Pointer to WAVEFORMATEX structure
  25.     HMMIO         m_hmmioIn;     // MM I/O handle for the WAVE
  26.     MMCKINFO      m_ckIn;        // Multimedia RIFF chunk
  27.     MMCKINFO      m_ckInRiff;    // Use in opening a WAVE file
  28.  
  29. public:
  30.     CWaveSoundRead();
  31.     ~CWaveSoundRead();
  32.  
  33.     HRESULT Open( CHAR* strFilename );
  34.     HRESULT Reset();
  35.     HRESULT Read( UINT nSizeToRead, BYTE* pbData, UINT* pnSizeRead );
  36.     HRESULT Close();
  37.  
  38. };
  39.  
  40.  
  41. #endif WAVE_READ_H
  42.  
  43.  
  44.  
  45.